import JWTToken from './../../helpers/jwt'

export default{
    actions:{
        updateProfileRequest({dispatch},formData){
            return axios.post('/api/user/profile/update',formData).then(response=>{
                dispatch('showNotification',{level:'success',msg:'更新资料成功！'})
            }).catch(errors=>{
                dispatch('showNotification',{level:'error',msg:'更新资料失败！'})
                
            })
        },

    } 
}